home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Perfect PC - Ultimate Utilities
/
The Perfect PC - The Multimedia Compliment to PC Magazine - Ultimate Utilities (Ziff-Davis)(Volume 4 Number 2)(1996).ISO
/
zdbench
/
wb96
/
uninstal.ba_
/
uninstal.ba
Wrap
Text File
|
1995-11-12
|
3KB
|
119 lines
@ECHO OFF
REM Copyright (c) 1994-1995 by Ziff-Davis Publishing Company.
REM All rights reserved.
GOTO SETVARS
:START
IF "%WBDRIVE%" == "" GOTO NOENV
IF "%WBDIR%" == "" GOTO NOENV
IF "%SYSDIR%" == "" GOTO NOENV
IF "%WINDIR%" == "" GOTO NOENV
IF "%NAMEVERSION%" == "" GOTO NOENV
IF "%NAME%" == "" GOTO NOENV
IF "%INIFILE%" == "" GOTO NOENV
IF "%1" == "copied" GOTO OK
IF EXIST %WBDRIVE%:\~WBUNINS.BAT DEL %WBDRIVE%:\~WBUNINS.BAT
COPY %WBDIR%\UNINSTAL.BAT %WBDRIVE%:\~WBUNINS.BAT > NUL
%WBDRIVE%:\~WBUNINS.BAT copied
:OK
ECHO %NAMEVERSION% Uninstall
ECHO.
ECHO This script will attempt to delete the %NAME%
ECHO directory %WBDIR%.
ECHO.
ECHO The script will delete all the files %NAME% installed.
ECHO If you have added other files to the %NAME% directory,
ECHO the script will not delete those files and the
ECHO %NAME% directory.
ECHO.
ECHO Press CTRL/BREAK to abort this script, or any other key to
ECHO uninstall %NAME%.
ECHO.
PAUSE
ECHO.
ECHO Removing the %INIFILE% file ....
IF EXIST %WINDIR%\%INIFILE% DEL %WINDIR%\%INIFILE%
ECHO.
ECHO Removing the %NAME% directory %WBDIR% ...
%WBDRIVE%:
CD %WBDIR%
FOR %%u IN (UNEXT*.BAT) DO CALL %%u
FOR %%u IN (UNEXT*.BAT) DO ZERO %%u
FOR %%u IN (UNEXT*.BAT) DO DEL %%u
GOTO ERASEFILES
:REMOVEDIRS
IF EXIST DISCLOSE.INI DEL DISCLOSE.INI
IF NOT EXIST SUITES\*.* RMDIR SUITES
IF NOT EXIST EXPORTS\*.* RMDIR EXPORTS
IF EXIST SUITES\*.* GOTO FAILED
IF EXIST EXPORTS\*.* GOTO FAILED
IF EXIST RESULTS.ZDB\*.* GOTO FAILED
IF EXIST *.* GOTO FAILED
CD ..
RMDIR %WBDIR%
GOTO SUCCESS
:FAILED
ECHO.
ECHO This script did not completely remove the %NAME%
ECHO directory because it contains additional files
ECHO %NAME% did not install or a database directory.
ECHO You should manually delete the extra files and
ECHO then delete the %NAME% directory.
GOTO COMMON
:SUCCESS
ECHO.
ECHO %NAME% has been removed from your system.
GOTO COMMON
:COMMON
ECHO.
ECHO This script did not remove the BWCC.DLL and CTL3DV2.DLL
ECHO libraries from the Windows system directory. (You should
ECHO not remove these files, as applications installed before
ECHO or after %NAME% may also be using them.)
ECHO.
ECHO You should manually delete the %NAME% icons in the
ECHO Ziff-Davis Benchmarks program group.
ECHO.
ECHO You should also delete this script using the command:
ECHO DEL %WBDRIVE%:\~WBUNINS.BAT
ECHO.
GOTO DONE
:NOENV
ECHO.
ECHO You must increase the amount of available environment
ECHO variable space before you can run this program.
ECHO.
ECHO Edit the CONFIG.SYS file so that it contains the line:
ECHO.
ECHO Shell=C:\COMMAND.COM /E:512 /P
ECHO.
ECHO or increase the /E: value if it already exists.
ECHO.
ECHO If you are running UNINSTAL.BAT from within Windows,
ECHO run the UNINSTAL.PIF file instead. It may provide
ECHO more environment space.
ECHO.
GOTO DONE
GOTO REMOVEDIRS